* {
  padding: 0;
  margin: 0;
  text-decoration: none;
}

.box {
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
  width: 100vw;
  padding-bottom: 30px;
  border-radius: 25px;
  background: #e9edf2;
  //头部
  .header {
    height: 50px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    background: #2ecefe;
    h3{
      text-align: center;
      color: #fff;
      font-size: 18px;
      line-height: 50px;
    }
  }
  //聊天窗口
  .chat_window {
    background: #e9edf2;
    padding-top: 20px;
    border-bottom: 1px solid #2ecefe;
    width: 100%;
    height: 500px;
    /* 去掉滚动条 */
    overflow: auto;
    -ms-overflow-style: none; /* IE 10+ */
    overflow: -moz-scrollbars-none; /* Firefox */
    //对话记录
    .msg_box{
      display: flex;
      align-items: center;
      .pic{
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        img{
          width: 42px;
          height: 42px;
          border: 1px solid #c7c7c7;
          border-radius: 50%;
        }
        span{
          font-size: 10px;
          color: #9c9c9c;
        }
      }
      .msg{
        margin-bottom: 15px;
        p{
          background: #ffffff;
          color: #7a7b7f;
          word-break: break-all;
          border-radius: 10px;
          padding: 5px;
          max-width: 10vw;
          font-size: 13px;
        }
        a{
          img{
            width: 140px;
            height: 140px;
            object-fit: contain;
            object-position: center;
          }
        }
        .a_link{
          border: 1px solid #d9d9d9;
          padding: 8px;
          border-radius: 7px;
          background: #f7f7f7;
          width: 50%;
          display: flex;
          align-items: center;
          img{
            width: 50px;
            height: 50px;
          }
          div{
            width: 60%;
            margin-left: 10px;
            display: flex;
            flex-direction: column;
            font-size: 12px;
            span:nth-child(1){
              color: #333333;
              font-size: 13px;
              margin-bottom: 7px;
            }
            span{
              color: #8c8c8c;
              font-size: 10px;
              white-space:nowrap;
              overflow:hidden;
              text-overflow:ellipsis;
            }
          }
        }
      }
    }
    .right_msg_box{
      display: flex;
      justify-content: flex-end;
      .msg{
        display: flex;
        justify-content: flex-end;
        p{
          color: #f9f9f9;
          background: #52a9fe;
        }
      }
    }

  }
  /* 去掉滚动条 */
  .chat_window::-webkit-scrollbar {
    width: 0 !important
  }
  //输入
  .input_box {
    background: #e9edf2;
    .button_box{
      padding: 8px 10px;
      a{
        img{
          width: 25px;
          height: 25px;
        }
      }
    }
    textarea{
      background: #e9edf2;
      border: 0px solid;
      padding: 10px;
      width: 90%;
      min-height: 100px;
      resize: vertical;
    }
  }
}

